home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 858 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  3.1 KB

  1. From: moacs11!walra@relay.nl.net (Waldi Ravens)
  2. Subject: [MINTOS] looking for data  (was: Re: standard paths)
  3. Date: Tue, 18 Jan 1994 12:18:30 +0100
  4.  
  5. In <9401180846.AA15380@math.uni-muenster.de>, Bjarne Pohlers <bjarne@math.uni-muenster.de> wrote:
  6.  
  7. >|>The current mechanism, looking for an enironment variable first and use a
  8. >|>hardcoded path if it ain't there, is not to bad.
  9. >|>
  10. > There is a third way:
  11.  
  12. I don't like it, but won't reject it either as it enhances the systems
  13. flexibility. Just a few constructive comments:
  14.  
  15. > in my setup I have a file `c:\etc\host.cnf'
  16.  
  17. I would prefer /etc or /usr/etc as the standard location of the file. The
  18. drive specifier is taken from UNIXMODE or else it is the current drive.
  19. The file name host.cnf seems rather confusing, as it suggests a relation
  20. to /etc/hosts. The only alternative I can come up with is binconfig (also
  21. misleading), a better name is asked for.
  22.  
  23. > (yes, the name is currently fixed, but as it is the only fixed name it
  24. > could be easily changed by a utility like fixstk).
  25.  
  26. Yes, but it would be necessary to change all executables using this file.
  27. So I propose to have an environment variable (preferably the same name as
  28. the standard name of the file, ie HOST_CNF or BINCONFIG) containing the
  29. full path.
  30.  
  31. > In c:\etc\host.cnf
  32. > there are entries like
  33. > ETCDIR=/dev/u/etc
  34. > LIBDIR=/dev/u/usr/lib
  35. > HOSTNAME=<Guess>
  36. > etc.
  37.  
  38. The /dev/<drive>/ notation is IMO a bit silly under MiNT, after all MiNT
  39. provides a /dev filesystem that is more like the-real-thing(TM). This,
  40. ofcourse, does not effect your proposal, I merely felt the need to express
  41. my opinion that we should get rid of the outdated Gemdos-goes-Unix tricks.
  42. ( :-) for the humor impaired)
  43.  
  44. > For special programs one could add a line
  45. > PROGRAMNAME_CNF=<location of program special-.cnf file>
  46. > in which setups can be done which affect only one program
  47. >
  48. > c:\etc\host.cnf and the program.cnf-file could be set up by
  49. > install-scripts or programs.
  50. >
  51. > Some of my programs use this feature already and it works quite fine.
  52.  
  53. Summary:
  54.  
  55.         Executables (binaries as well as scripts) may find the paths and
  56.         other  data tey need by:
  57.  
  58.         1. Looking for a well documented environment variable. If it ain't
  59.            there or has an incorrect value, than by:
  60.         2. Looking for the general configuration file, and searching for
  61.            the required data in there. If either the config file does not
  62.            exist, or else the data is not available or invalid, than by:
  63.         3. Using the built-in (hardcoded) data.
  64.  
  65.         Where 1 and 2 are ofcourse optional. Looking for the general
  66.         configuration file means: use the path from environment variable
  67.         <?????> (not yet defined), or else some standard path (not yet
  68.         defined).
  69.  
  70. Note that the hardcoded data (3) may be changed by either modifying the
  71. sources (including configure script and Makefile) or by modifying the
  72. binary with the aid of a standardised (not yet defined) config-tool. In
  73. the case of scripts (sh/perl/...) you can use emacs/vi/whatever-you-like
  74. as the 'config-tool' :-).
  75.  
  76.  
  77. Regards,
  78.            Waldi  (walra%moacs11@nl.net)
  79.